package ooad.gof.factory.factoryMethod;

import ooad.gof.factory.Driver;
import ooad.gof.factory.Product;

/**
 * 程序当中任何一个类？？？？
 *
 */
class Client {
	public static void main(String[] args) {
		Driver driver = new Driver();
        Factory factory = new PlaneFactory();//干掉？
        Product product = factory.getInstance();
        driver.setProduct(product);
        driver.drive();
	}
}
